from myelin.Ns import MYELIN, MYELINS


from nodetypes.Ns import NODETYPE_NS
from nodetypes.ntypes.Resource import Resource
from nodetypes.models.Document import Document as DocumentModel

import view, \
    showTranslations


class Document(Resource):
    
    typeInfo = {
        'key' : u'document',
        'name' : u'Document',
        'namespace-uri' : NODETYPE_NS,
    }
    
    ACTIONS = {
        'view'                  : view.TRANSFORMS,
        'show-translations'     : showTranslations.TRANSFORMS,
    }
    
    model = DocumentModel


NODE_TYPES = {
    MYELIN + 'Document' : Document,
}


    